home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2130 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  865 b 

  1. Path: news.uh.edu!usenet
  2. From: Sensarn <txs53132@bayou.uh.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland C++ asm{labels}
  5. Date: 16 Jan 1996 03:51:55 GMT
  6. Organization: AEtna Insurance Agency
  7. Message-ID: <4df7cr$io9@masala.cc.uh.edu>
  8. References: <60114202823$71C7@lasernet.com>
  9. NNTP-Posting-Host: sip-14283.public-dialups.uh.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1 (Windows; U; 16bit)
  14.  
  15.      I had the same problem (we both have the same programming book too, 
  16. huh? -- if you don't know what I'm talking about, then never mind).  I 
  17. used asm.  Labels must go outside the brackets:
  18.  
  19. asm {
  20.      mov cx,100
  21. }
  22.  
  23. loopme:
  24.  
  25. asm {
  26.      loopne
  27. }
  28.  
  29. It does absolutely nothing (except decrement CX 100 times), but that 
  30. should show you how to use labels.
  31.  
  32. Steven Sensarn - txs53132@bayou.uh.edu
  33.  
  34.  
  35.